/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.base.push.model.payload;

import android.os.Parcel;
import android.os.Parcelable;


public class PushMsgParams implements Parcelable {

    private String key;
    private String value;

    public PushMsgParams() {

    }

    public PushMsgParams(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.key);
        dest.writeString(this.value);
    }

    protected PushMsgParams(Parcel in) {
        this.key = in.readString();
        this.value = in.readString();
    }

    public static final Creator<PushMsgParams> CREATOR = new Creator<PushMsgParams>() {
        @Override
        public PushMsgParams createFromParcel(Parcel source) {
            return new PushMsgParams(source);
        }

        @Override
        public PushMsgParams[] newArray(int size) {
            return new PushMsgParams[size];
        }
    };

    @Override
    public String toString() {
        return "PushMsgParams{" +
                "key='" + key + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
